import vrou from 'vue-router'
const originalPush=vrou.prototype.push
vrou.prototype.push=function(location){
    return originalPush.call(this,location).catch(err=>err)
}
const router=new vrou({
    routes:[
        {
            path:"/login",
            component:()=>import('@/pages/login')
        },{
            path:"/welcome",
            component:()=>import('@/pages/welcome')
        },{
            path:"/main",
            component:()=>import('@/pages/main'),
            children:[
                {
                    path:"welcome",
                    component:()=>import('@/pages/welcome')
                },
                {
                    path:"/updatepassword",
                    component:()=>import('@/pages/editpassword/updatePassword')
                },
                // 机构养老
                {//机构管理//基本信息
                    path:"3-1-1",
                    component:()=>import('@/pages/institutioncare/institutionadmin/3_1_1')
                },{//机构管理//跳转页
                    path:"sss",
                    component:()=>import('@/pages/institutioncare/institutionadmin/sss')
                },{//安全信息管理//安全教育与培训记录
                    path:"3-3-1",
                    component:()=>import('@/pages/institutioncare/safetyinformation/3_3_1')
                },{//安全信息管理//安全标识检查记录
                    path:"3-3-2",
                    component:()=>import('@/pages/institutioncare/safetyinformation/3_3_2')
                },{//安全信息管理//每月防火检查记录
                    path:"3-3-3",
                    component:()=>import('@/pages/institutioncare/safetyinformation/3_3_3')
                },{//安全信息管理//维护保养和检测记录
                    path:"3-3-4",
                    component:()=>import('@/pages/institutioncare/safetyinformation/3_3_4')
                },{//安全信息管理//安全演练记录
                    path:"3-3-5",
                    component:()=>import('@/pages/institutioncare/safetyinformation/3_3_5')
                },{//机构管理//机构分布图
                    path:"3-8",
                    component:()=>import('@/pages/institutioncare/3_8')
                },

                //机构养老
                {//养老服务机构
                    path:"JingFeiBuTie",
                    component:()=>import('@/pages/institutioncare/jingfeibutie/JingFeiBuTie')
                },
                //机构养老
                {//服务质量信息
                    path:"FuWuXinXi",
                    component:()=>import('@/pages/institutioncare/fuwuxinxi/FuWuXinXi')
                },
                //机构养老
                {//服务质量信息
                    path:"CongYeRenYuan",
                    component:()=>import('@/pages/institutioncare/congyerenyuan/CongYeRenYuan')

                },

                // 社区和居家养老
                {//日间照料中心
                    path:"rijianzhaoliao",
                    component:()=>import('@/pages/carecommunity/daycare/rijianzhaoliao')
                },
                // 社区和居家养老
                {//居家养老服务
                    path:"jujiayanglao",
                    component:()=>import('@/pages/carecommunity/homebasedcare/jujiayanglao')
                },
                // 社区和居家养老
                {//安全管理信息
                    path:"anquanguanli",
                    component:()=>import('@/pages/carecommunity/anquanguanli')
                },
                // 修改密码
                {
                    path:"updatepassword",
                    component:()=>import('@/pages/editpassword/updatePassword')
                },
                //数据统计
                {//养老服务机构
                path:"YangLaoFuWuJiGou",
                component:()=>import('@/pages/datastatistics/yanglaofuwujigou/YangLaoFuWuJiGou')

                },
                //数据统计
                {//养老服务机构
                path:"YangLaoFuWuSheShi",
                component:()=>import('@/pages/datastatistics/yanglaofuwusheshi/YangLaoFuWuSheShi')

                },
                ,
                //数据统计
                {//养老服务机构
                path:"YangLaoFuWuRenQun",
                component:()=>import('@/pages/datastatistics/yanglaofuwurenqun/YangLaoFuWuRenQun')

                },
                ,
                //数据统计
                {//养老服务机构
                    path:"YangLaoFuWuChuangWei",
                    component:()=>import('@/pages/datastatistics/yanglaofuwuchuangwei/YangLaoFuWuChuangWei')

                },
                //配置管理
                {//评估模板
                    path:"PingGuMoBan",
                    component:()=>import('@/pages/configuration/PingGuMoBan')
                },
                //配置管理
                {//评估项管理
                    path:"PingGuXiangGuanLi",
                    component:()=>import('@/pages/configuration/PingGuXiangGuanLi')
                },
                //配置管理
                {//项值管理
                    path:"XiangZhiGuanLi",
                    component:()=>import('@/pages/configuration/XiangZhiGuanLi')
                },
                //配置管理
                {//评估级别管理
                    path:"PingGuJiBieGuanLi",
                    component:()=>import('@/pages/configuration/PingGuJiBieGuanLi')
                },
                //配置管理
                {//指标管理
                    path:"ZhiBiaoGuanLi",
                    component:()=>import('@/pages/configuration/ZhiBiaoGuanLi')
                },
            
                {//入住管理
                    path:"RuZhuGuanLi",
                    component:()=>import('@/pages/institutioncare/peoplemanagement/RuZhuGuanLi')},

                //机构养老
                {//收费标准
                    path:"ShouFeiBiaoZhun",
                    component:()=>import('@/pages/configuration/ShouFeiBiaoZhun')
                },
                //机构养老
                {//老年人能力评估
                    path:"LaoNianRenNengLiPingGu",
                    component:()=>import('@/pages/configuration/LaoNianRenNengLiPingGu')

                },
                //配置管理
                {//评估模板
                    path:"PingGuMoBan",
                    component:()=>import('@/pages/configuration/PingGuMoBan')
                },
                //配置管理
                {//评估项管理
                    path:"PingGuXiangGuanLi",
                    component:()=>import('@/pages/configuration/PingGuXiangGuanLi')
                },
                //配置管理
                {//项值管理
                    path:"XiangZhiGuanLi",
                    component:()=>import('@/pages/configuration/XiangZhiGuanLi')
                },
                //配置管理
                {//评估级别管理
                    path:"PingGuJiBieGuanLi",
                    component:()=>import('@/pages/configuration/PingGuJiBieGuanLi')
                },
                //配置管理
                {//指标管理
                    path:"ZhiBiaoGuanLi",
                    component:()=>import('@/pages/configuration/ZhiBiaoGuanLi')
                },
                  {//指标管理
                    path:"qiniu",
                    component:()=>import('@/pages/institutioncare/peoplemanagement/qiniu')
                },

                


            ]
        }
    ]
});
export default router;